// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Router from 'vue-router'
import App from './App'
import home from './components/home/home.vue'
import order from './components/order/order.vue'
import task from './components/task/task.vue'
import mine from './components/mine/mine.vue'
import miss from './components/miss/miss.vue'
Vue.use(Router);
Vue.config.productionTip = false

const routes = [
    { path: '/', redirect: '/home' },
    { path: '/home', component: home },
    { path: '/order', component: order },
    { path: '/task', component: task },
    { path: '/mine', component: mine },
    { path: '/miss', component: miss },
]
const router = new Router({
    routes
})

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})